<template>
  <li class="">
    <label>
      <input type="checkbox" class="flat-red">{{ model.name }}
    </label>
    <ul v-if="model.children && model.children.length" class="p-l-20" >
      <tree-menu class="" v-for="(item,index) in model.children" :key="index" :model="item"></tree-menu>
    </ul>
  </li>
</template>

<script>
  export default {
    name: 'treeMenu',
    props: ['model'],
    data() {
      return {

      }
    },
    methods: {
    },
    created() {
    }
  }
</script>

